/* -----------------------------------------------------------
 * Author: Marie Caswell
 * Testing Function: outpost card

 * Description: Checks for the value of numBuys and coins 
 * after salvager is played
 -----------------------------------------------------------*/

#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"

int main(){

int seed = 1000;
int numPlayer = 2;
struct gameState G;
int null = 0;
int k[10] = {adventurer, outpost, salvager, village, minion, mine, cutpurse, sea_hag, estate, smithy};
memset(&G, 23, sizeof(struct gameState));   // clear the game state
initializeGame(numPlayer, k, seed, &G); // initialize a new game 

G.whoseTurn = 0; 

printf("\npre-outpost played value: %d\n", G.outpostPlayed);

gainCard(outpost, &G, 2, 0); //place outpost in first player's hand
 
cardEffect(outpost, null, null, null, &G, 0, &null); //play salvager, trash minion

printf("post-outpost played value: %d\n", G.outpostPlayed);

assert(G.outpostPlayed == 1); //confirm gameState outPost played value increased to 1

printf("\nTest passed.\n\n");

return 0;

 }